package modeloCarro;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import modeloDetalleCarro.DetalleCarro;

@Stateless (name = "CarroEjbRemote", mappedName = "CarroEjbRemote")
public class CarroEjb implements CarroEjbRemote{

    @PersistenceContext(unitName = "JPADB1")
    private EntityManager entityManager;
    
    public void agregarDetalle (DetalleCarro detalle){
        entityManager.persist(detalle);
    }
    
    public void eliminarDetalle (String id_detalle){
        
    }
}
